import React, { useState ,RefObject}  from 'react'
import {useNavigate} from "react-router-dom"
import { Input } from 'tdesign-mobile-react';
type Props = {}

const My_header = (props: Props) => {
  const navigate = useNavigate()
    const [value, setValue] = useState('');
  return (
    <>
         <Input
          value={value}
          onChange={(text:any) => setValue(text)}
          placeholder='请输入文本'
          onFocus={e=>navigate("/search")}
        />
    </>
  )
}

export default My_header